package vooga.behaviors;

import vooga.entities.Entity;


public class rescaleBehavior extends AbstractBehavior
{
    private double myXScale;
    private double myYScale;


    public rescaleBehavior (double factor)
    {
        this(factor, factor);
    }

    public rescaleBehavior (double xFactor, double yFactor)
    {
        myXScale = xFactor;
        myYScale = yFactor;
    }


    public void step (Entity target)
    {
        target.scale(myXScale, myYScale);
    }
}
